package city.spring.modules.consumptionItem.repository;

import city.spring.modules.consumptionItem.entity.ProjectBedRelationEntity;
import city.spring.modules.consumptionItem.vo.ProjectBedRelationEntityVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：项目-床位联系表
 *
 * @author pxm
 * @date 2020-08-18 09:02:28
 */
@Repository
public interface ProjectBedRelationRepository extends BaseMapper<ProjectBedRelationEntity> {

    /**
     * 获取消费项目的多个床位信息列表
     *
     * @param projectId 项目ID
     * @return
     */
    List<ProjectBedRelationEntityVO> getProjectBeds(String projectId);
}